-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for getParsedJSONAssignment method returning JsonNode (FF-896) #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📈
@@ -258,7 +260,7 @@ public Optional<Double> getDoubleAssignment(String subjectKey, String experiment | |||
* @param subjectAttributes | |||
* @return | |||
*/ | |||
public Optional<String> getJSONAssignment(String subjectKey, String experimentKey, | |||
public Optional<String> getJSONStringAssignment(String subjectKey, String experimentKey, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* @param subjectAttributes | ||
* @return | ||
*/ | ||
public Optional<JsonNode> getParsedJSONAssignment(String subjectKey, String experimentKey, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
assertEquals(testCase.expectedAssignments, actualJSONAssignments.stream() | ||
.map(node -> node.toString()) | ||
.collect(Collectors.toList())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
description
note to reviewers: the diff of
EppoClientTest.java
is a little strange reviewing side by side please take care.testing
unit tests access json via the parsed method in order to exercise both the
JsonNode
andString
return types.